<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@ include file="/include/meta.jsp"%>
	<title>系统登录</title>
	<link rel="stylesheet" type="text/css" href="wro/login.css" />
</head>
<body>
	<input type="hidden" id="md5Time" value="${md5Time }" />
	<br/>
	<br/>
	<div id="loginDiv" class="container-fluid">
		<div class="row">
	  		<div class="col-md-4 col-md-offset-4">
				<div class="panel panel-primary">
					<div class="panel-heading">
						<h4 class="modal-title" id="myModalLabel">工程项目管理系统</h4>
					</div>
					<div class="panel-body">
						<div class="container-fluid">
							<form role="form" class="form-horizontal">
								<br />
								<div class="form-group has-success has-feedback">
									<input type="text" class="form-control" id="accountLogin" name="accountLogin" placeholder="登录账号" />
									<span class="glyphicon glyphicon-user form-control-feedback"></span>
								</div>
								<br />
								<div class="form-group has-success has-feedback">
								    <input type="password" class="form-control" id="passwordLogin" name="passwordLogin" placeholder="登录密码" />
								    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
								</div>
								<div class="checkbox" style="text-align: right;">
								    <label>
								   		<input type="checkbox" id="rememberMe"> 记住我
								    </label>
								</div>
								<div class='text-right'><span id="error_message" style="display:none;color:orange;"></span></div>
								<br/>
								<div class="pull-left">
									<button type="button" class="btn btn-primary" onclick="show_div('loginDiv','reDiv')">
										<span class="glyphicon glyphicon-star"></span>&nbsp; 注册
									</button>
								</div>
		    					<div class="pull-right">
									<button type="button" class="btn btn-primary" onclick="dosubmit();">
									<span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp;  登录</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="reDiv" class="container-fluid hide">
		<div class="row">
	  		<div class="col-md-4 col-md-offset-4">
				<div class="panel panel-primary">
					<div class="panel-heading">
						<h4 class="modal-title" id="myModalLabel">用户注册</h4>
					</div>
					<div class="panel-body">
						<br />
						<div class="container-fluid">
							<form id="loginForm" role="form" class="form-horizontal" action="login!register.action">
								<input type="hidden" id="passwordForRegister" name="systemUser.password" />
								<div align="center" class="form-group has-feedback">
									<input type="text" class="form-control" id="name" name="systemUser.name" placeholder="姓名" required />
									<span class="glyphicon glyphicon-user form-control-feedback"></span>
								</div>
								<br/>
								<div align="center" class="form-group has-feedback">
									<input type="text" class="form-control" id="accountRegister" name="systemUser.account" placeholder="登录账号" required />
									<span class="glyphicon glyphicon-user form-control-feedback"></span>
								</div>
								<br />
								<div class="form-group has-feedback">
								    <input type="password" class="form-control" id="passwordRegister" name="passwordRegister" placeholder="登录密码" required />
								    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
								</div>
								<br />
								<div class="form-group has-feedback control-group">
								<div class="controls">
									<input type="password" class="form-control" data-validation-matches-match="passwordRegister" data-validation-matches-message="<font style='color:red;'>与第一次输入不符</font>" 
								  		id="passwordRegisterAgain" name="passwordRegisterAgain" aria-invalid="true" placeholder="密码确认"/>
								   	<span class="glyphicon glyphicon-lock form-control-feedback"></span>
								</div>
								</div>
		    					<br />
								<div class="pull-left">
									<button type="button" class="btn btn-primary" onclick="show_div('reDiv','loginDiv')">
										<span class="glyphicon glyphicon-circle-arrow-left"></span>&nbsp;  返回登录
									</button>
								</div>
								<div class="pull-right">
									<button type="submit" class="btn btn-primary">
										<span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp;  确定
									</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="wro/login.js"></script>
</body>
</html>